/* Copyright (C) 2015-2016 HangZhou Zenzet Technology Co., Ltd.
 * All right reserved

 * File:crypto/locketfilecrypt.h
 * Author:guojianchuan/max
 * Date:2016-07-20
 
 */

#ifndef _LOCKET_FILECRYPT_H_
#define _LOCKET_FILECRYPT_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* @struct: CIPHER_FILE_S
* @Author: guojianchuan/max
* @Date: 2016-07-18
* @Description: 文件加解密结构体
*/
typedef struct tagCipherFile
{
    /* 文件 */
    char *pcFileName;

    /* 回调函数 (不能为NULL)*/
    CRYPT_CALLBACK pfCryptCBFunc;

    /* 加密进度回调函数 (如果不用请设置成NULL)*/
    CRYPT_CALLBACK pfProgressCBFunc; 
}CIPHER_FILE_S;

int LOCKET_CIPHER_FileEncrypt(IN CIPHER_FILE_S *pstFileCrypt, IN META_S *pstMeta);
int LOCKET_CIPHER_FileDecrypt(IN CIPHER_FILE_S *pstFileCrypt);

#ifdef __cplusplus
}
#endif

#endif  /* _LOCKET_FILECRYPT_H_ */
